{%include file="header.html"%}
<style>
body {
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
margin:0;
}
#main {
height:1800px;
padding-top:90px;
text-align:center;
}
#fullbg {
left:0;
opacity:0.5;
position:absolute;
top:0;
z-index:3;
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity:0.5;
}
#dialog {
background-color:#fff;
border:5px solid rgba(0,0,0, 0.4);
height:400px;
left:50%;
margin:-200px 0 0 -200px;
padding:1px;
position:fixed !important; /* 浮动对话框 */
position:absolute;
top:50%;
width:400px;
z-index:5;
border-radius:5px;
display:none;
}
#dialog p {
margin:0 0 12px;
height:24px;
line-height:24px;
background:#CCCCCC;
}
#dialog p.close {
text-align:right;
padding-right:10px;
}
#dialog p.close a {
color:#fff;
text-decoration:none;
} 
table.adminlist .perfile_add .noborder td { border-bottom: none !important; }
</style>
<form action="{%$formAction%}" method="POST" {%if $is_validator%} id="adminform" onsubmit="return Validator.Validate(this)" {%/if%}>
<link rel="stylesheet" type="text/css" href="{%$smarty.const.BASEURI%}public/css/ui.datepicker.css"/>
<script language="javascript" src="{%$smarty.const.BASEURI%}public/js/ui.datetimepicker.js"></script>
<table border="0" class="search" cellspacing="0" id="search">
   	<tr>
    	<td class="searchlogo"></td>
        <td>
			姓名：<input type="text" class="text" style="width:88px" name="userName" value="{%$search.userName%}"/>
			&nbsp;&nbsp;手机号：<input type="text" class="text" style="width:88px" name="userPhone" value="{%$search.userPhone%}"/>
            </select>
			<!--
			&nbsp;&nbsp;Bundle_ID：<input type="text" class="text" style="width:88px" name="s[packName]" value="{%$search.packName%}"/>
			&nbsp;&nbsp;应用名称：<input type="text" class="text" style="width:88px" name="s[packName]" value="{%$search.packName%}"/>
			-->
			&nbsp;&nbsp;<input type="button" class="button" name="ng" onclick="submitform('{%$smarty.const.BASEURI%}order/index',false)" value="{%$systemLang.search%}" />
		</td>
    </tr>
</table>
<table width="100%" border="0" class="adminlist" cellspacing="0">

    <thead>
    <tr>
        <th>姓名</th>
        <th>手机号</th>
		<th>购买数量</th>
		<th>购买类型</th>
        <th>地址</th>
        <!--<th>是否付款</th>-->
        <th>付款金额</th>
		<th>是否发货</th>
		<th>最新快递时间</th>
		<th>快递日志</th>
		<th	></th>
    </tr>
    </thead>
    <tbody>
    {% foreach from=$result key="key" item="info" %}
    <tr class="row0">
        <td>{%$info.userName%}</td>
        <td>{%$info.userPhone%}</td>
		<td>{%$info.buyNumber%}</td>
		<td>{%if $info.buyType == 1 %} 普通 {%else%} 精品 {%/if%}</td>
        <td>{%$info.userAddress%}</td>
        <!--<td>{%$info.addTime|date_format:"%Y-%m-%d %H:%M:%S"%}</td>-->
        <!--<td>{% if $info.buyPrice != 1%} <img src="/public/images/done.gif"> {%else %} <img src="/public/images/delete.gif"> {%/if%}</td>-->
		<td>{% if $info.buyPrice != 1%} {%$info.buyPrice%} {%else %} {%/if%}</td>
		<td>{% if $info.expressNumber == ''%} <img src="/public/images/delete.gif"> {%else %} {%$info.expressNumber%} {%/if%}</td>
		<td>{%$info.expressTime|date_format:"%Y-%m-%d %H:%M:%S"%}</td>
		<td>{%$info.expressLog%}</td>
		<td><a href="{%$smarty.const.BASEURI%}order/info/{%$info.id%}">编辑</a></td>
    </tr>
    {%/foreach%}
    </tbody>
    <tfoot>
    <tr>
		<td colspan="4"><a href="{%$smarty.const.BASEURI%}order/info">新加单</a></td>
        <td colspan="7" style="text-align:center">{%$page%}</td>
    </tr>
    </tfoot>
</table>
</form>

<div id="fullbg"></div>
<div id="dialog">
	<p class="close"><a href="#" onclick="closeBg();">关闭</a></p>
	<div id="certmore">
		正在加载，请稍后....
	</div>
</div>
<script language="javascript">
    $('#cctime_s').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"",maxDate:"+1d"});
    $('#cctime_e').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"",maxDate:"+1d"});
</script>

<script type="text/javascript">
//显示灰色 jQuery 遮罩层
function showBg(id) {
	var bh = $("body").height();
	var bw = $("body").width();
	$("#fullbg").css({
		height:bh,
		width:bw,
		display:"block"
	});
	$.post("{%$moreAction%}",{id:id},function(result){
		var str_html = '<table>'			
			+'<tr>'
			+'	<td width="25%" align="right">证书:</td>'
			+'	<td  align="left">'+result.name+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密码:</td>'
			+'	<td>'+result.mailPwd+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密码:</td>'
			+'	<td>'+result.developerPwd+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">绑定手机:</td>'
			+'	<td>'+result.phone+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保1:</td>'
			+'	<td>'+result.mailSecurity1+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保1答案:</td>'
			+'	<td>'+result.mailAnswer1+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保2:</td>'
			+'	<td>'+result.mailSecurity2+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保2答案:</td>'
			+'	<td>'+result.mailAnswer2+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保3:</td>'
			+'	<td>'+result.mailSecurity3+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">邮箱密保3答案:</td>'
			+'	<td>'+result.mailAnswer3+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保1:</td>'
			+'	<td>'+result.developerSecurity1+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保1答案:</td>'
			+'	<td>'+result.developerAnswer1+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保2:</td>'
			+'	<td>'+result.developerSecurity2+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保2答案:</td>'
			+'	<td>'+result.developerAnswer2+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保3:</td>'
			+'	<td>'+result.developerSecurity3+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">开发者密保3答案:</td>'
			+'	<td>'+result.developerAnswer3+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">购买时间:</td>'
			+'	<td>'+result.payTime+'</td>'
			+'</tr>'
			+'<tr>'
			+'	<td align="right">来源:</td>'
			+'	<td>'+result.source+'</td>'
			+'</tr>'

		+'<table>';
		$('#certmore').html(str_html);
	},'json');		
	$("#dialog").show();
}
//关闭灰色 jQuery 遮罩
function closeBg() {
	$("#fullbg,#dialog").hide();
}
</script>